package com.zpp.wedding_admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zpp.wedding_admin.entity.Collect;
import com.zpp.wedding_admin.entity.Good;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodMapper extends BaseMapper<Good> {
    List<Good> getGood(String id);

    boolean goodAdd(@Param("id") String id,
                       @Param("userId") String userId);

    boolean goodSubtract(@Param("id") String id,
                            @Param("userId") String userId);
}
